<template>
	<view class="content padding-sm">
		<mp-html :content="conf.content"></mp-html>
	</view>
</template>

<script>
	import { getJumpDetail } from "@/api/life.js";
	export default {
		data() {
			return {
				option:{},
				conf:{},
			};
		},
		onLoad: function (option) { //option为object类型，会序列化上个页面传递的参数
			this.option = option;
		},
		onShow() {
			this.getConfig();
		},
		methods: {
			getConfig(){
				var that = this;
				getJumpDetail({pid:this.option.pid,p_table_name:this.option.p_table_name}).then(ret => {
					that.conf = ret.data;
				}).catch(err => {
					console.log(err);
				})
			}
		},
	}
</script>

<style lang="scss">
	page{background: #fff !important}
</style>